
============================================================
  Remote Management Setup  |  TARGET PC                                                                                   This PC will become remotely accessible                                                                               ============================================================                                                                                                                                                                                                                                                                                                            ============================================================
  TARGET PC Setup  |  DESKTOP-EICKUNK  |  User: upwork
============================================================

[1/6] OpenSSH Server
     ..  Installing OpenSSH Server...
     OK  Installed.
WARNING: Waiting for service 'OpenSSH SSH Server (sshd)' to start...
     OK  sshd running, startup = delayed-auto.
     OK  sshd_config: PubkeyAuth=yes, PasswordAuth=yes.
     OK  Admin key installed.
     OK  Key file permissions locked (SYSTEM + Administrators only).
     OK  sshd restarted with new config.

[2/6] WinRM (PowerShell Remoting)
     OK  WinRM running, startup = delayed-auto, TrustedHosts = *.

[3/6] Firewall Rules
     OK  Rule created: RemoteMgmt-SSH -> port 22
     OK  Rule created: RemoteMgmt-WinRM -> port 5985
     OK  Rule created: RemoteMgmt-WinRM-HTTPS -> port 5986

[4/6] Security Software Exclusions
     OK  Windows Defender: exclusions added.
     ..  Kaspersky: not detected.
     ..  ESET: not detected.
     ..  McAfee/Trellix: not detected.
     ..  Avast/AVG: not detected.

[5/6] Self-Healing Boot Task
     OK  Boot task 'RemoteMgmt-Ensure-Services' registered (SYSTEM, runs before any user login).

[6/6] Credentials Report

============================================================
  REMOTE MANAGEMENT - TARGET PC CREDENTIALS
  Generated : 2026-06-22 21:39:11
  Hostname  : DESKTOP-EICKUNK
  Username  : upwork
  Local IPs : 192.168.18.236, 100.77.11.55
  Public IP : 39.38.119.74
  Tailscale : 100.77.11.55
  SSH Port  : 22  |  WinRM Port : 5985
------------------------------------------------------------
  SSH (key-based, recommended):
    ssh -i ~/.ssh/<keyname> upwork@192.168.18.236
    ssh -i ~/.ssh/<keyname> upwork@100.77.11.55
    ssh -i ~/.ssh/<keyname> upwork@100.77.11.55  (Tailscale)

  WinRM (password-based):
    $cred = New-Object PSCredential("upwork", (ConvertTo-SecureString "<password>" -AsPlainText -Force))
    Enter-PSSession -ComputerName 192.168.18.236 -Credential $cred
============================================================
     OK  Credentials saved to: C:\RemoteMgmt\credentials.txt

============================================================
  DONE. This PC is now permanently remote-accessible.
  Survives every reboot via scheduled task.
============================================================


[SUCCESS] Setup complete. See credentials above or in C:\RemoteMgmt\credentials.txt

Press any key to continue . . .






